import request from '@/utils/request'

// 查询排班任务列表
export function listSchedulingTask(query) {
  return request({
    url: '/tranShort/schedulingTask/list',
    method: 'get',
    params: query
  })
}

// 查询排班任务详细
export function getSchedulingTask(id) {
  return request({
    url: '/tranShort/schedulingTask/' + id,
    method: 'get'
  })
}

// 新增排班任务
export function addSchedulingTask(data) {
  return request({
    url: '/tranShort/scheduling/save',
    method: 'post',
    data: data
  })
}

// 新增排班  拖拽
export function addmanualSend(data) {
  return request({
    url: '/wristlet/manualSend',
    method: 'post',
    data: data
  })
}

// 修改排班任务
export function updateSchedulingTask(data) {
  return request({
    url: '/tranShort/schedulingTask',
    method: 'put',
    data: data
  })
}

// 删除排班任务
export function delSchedulingTask(id) {
  return request({
    url: '/tranShort/schedulingTask/' + id,
    method: 'delete'
  })
}

// 导出排班任务
export function exportSchedulingTask(query) {
  return request({
    url: '/tranShort/schedulingTask/export',
    method: 'get',
    params: query
  })
}

